package com.prs.crm.domain.assets;

import java.sql.Date;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;
import com.prs.crm.domain.hr.Person;
/**
 * @author lingpinghong
 * @version 2012-6-13 9:38:18 归还历史
 * 
 * */
@Entity
@Table(name="ass_reverthistory")
public class RevertHistory extends BaseEntity{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	private int id;
	/**归还申请名称*/
	private String sname;
	/**归还申请状态*/
	private String sstate;
	/**归还单号*/
	private String number;
	/**归还人*/
	private String user;
	/**归还部门*/
	private String dept;
	@ManyToOne
	private Person person;
	/**归还时间*/
	private Date date;
	/**资产归还明细*/
	@OneToMany(cascade={CascadeType.ALL})
	private Set<AssetsRegister> assetsRegisters;	
	/**审批状态*/
	private Integer type;
	/**审批人*/
	private String spr;
	/**审批步骤*/
	private String splc;
	/**备注*/
	private String remark;
	/**资产情况说明*/
	private String shuoming;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getSname() {
		return sname;
	}
	public void setSname(String sname) {
		this.sname = sname;
	}
	public String getSstate() {
		return sstate;
	}
	public void setSstate(String sstate) {
		this.sstate = sstate;
	}
	public String getNumber() {
		return number;
	}
	public void setNumber(String number) {
		this.number = number;
	}
	public String getUser() {
		return user;
	}
	public void setUser(String user) {
		this.user = user;
	}
	public String getDept() {
		return dept;
	}
	public void setDept(String dept) {
		this.dept = dept;
	}
	public Person getPerson() {
		return person;
	}
	public void setPerson(Person person) {
		this.person = person;
	}
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	public Set<AssetsRegister> getAssetsRegisters() {
		return assetsRegisters;
	}
	public void setAssetsRegisters(Set<AssetsRegister> assetsRegisters) {
		this.assetsRegisters = assetsRegisters;
	}
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public String getSpr() {
		return spr;
	}
	public void setSpr(String spr) {
		this.spr = spr;
	}
	public String getSplc() {
		return splc;
	}
	public void setSplc(String splc) {
		this.splc = splc;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public String getShuoming() {
		return shuoming;
	}
	public void setShuoming(String shuoming) {
		this.shuoming = shuoming;
	}
	
}
